package roborally.model.evaluables;


/**
 * A class that implements the interface Evaluable, representing a negation of an associated Evaluable.
 */
public class Negation extends ComposedCondition implements Evaluable{
	/**
	 * Its associated evaluable.
	 */
	private Evaluable evaluable;
	public Negation(Evaluable evaluable)
	{
		this.evaluable = evaluable;
	}
	@Override
	public boolean evaluate() {
		return !evaluable.evaluate();
	}
	
}
